package xyz.zhzby.cyzx.com.service;

import xyz.zhzby.cyzx.com.dto.request.DiscussionAddRequest;
import xyz.zhzby.cyzx.com.dto.request.DiscussionPageRequest;
import xyz.zhzby.cyzx.com.dto.request.DiscussionReportRequest;
import xyz.zhzby.cyzx.com.dto.response.DiscussionResponse;
import xyz.zhzby.cyzx.com.entity.Discussion;
import com.baomidou.mybatisplus.extension.service.IService;
import xyz.zhzby.cyzx.servicebase.domain.PageResponse;
import xyz.zhzby.cyzx.servicebase.domain.RestResponse;

import java.util.List;

/**
 * <p>
 * 评论/回复 服务类
 * </p>
 *
 * @author zby
 * @since 2022-02-15
 */
public interface IDiscussionService extends IService<Discussion> {

    RestResponse<DiscussionResponse> createDiscuss(DiscussionAddRequest discussionAddRequest);

    RestResponse<PageResponse<DiscussionResponse>> getDiscussionList(DiscussionPageRequest discussionPageRequest);

    RestResponse<String> reportDiscussion(DiscussionReportRequest discussionReportRequest);

}
